package com.zzy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zzy.dao.ProductDao;
import com.zzy.model.Product;
import com.zzy.service.ProductService;
@Service
public class ProductServiceImpl implements  ProductService {
	
	
	@Autowired
	 ProductDao  productDao;
	
	
	@Transactional
	public void add(Product product) {
		 productDao.add(product);
		 
	}


	@Override
	public List<Product> getList() {
		
		return productDao.getList();
	}


	

	@Override
	public Product get(int id) {
		return productDao.get(id);
	}


	@Override
	public Product get() {
		// TODO Auto-generated method stub
		return null;
	}


	

}
